using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SimplePoker.Main;

namespace SimplePoker.tests
{
    [TestClass]
    public class RoundTests_AlwaysBetPlayers
    {
        private AlwaysBetPlayer _Aggro1 = new AlwaysBetPlayer("Aggro_1");
        private AlwaysBetPlayer _Aggro2 = new AlwaysBetPlayer("Aggro_2");
        private Round _Round;


        [TestInitialize]
        public void Setup()
        {
            _Round = new Round(_Aggro1, _Aggro2);
        }

        [TestMethod]
        public void first_bet_removes_1_chip_from_player()
        {
            _Round.DoNextAction();
            Assert.AreEqual<int>(998, _Aggro1.ChipCount);
        }

        [TestMethod]
        public void second_bet_removes_2_chips_from_playe()
        {
            _Round.DoNextAction();
            _Round.DoNextAction();
            Assert.AreEqual<int>(997, _Aggro2.ChipCount);
        }
    }
}
